Smush\Core\Media\Media_Item_Query S

Total Complexity 48
Dependencies 5
Dependents 7
Total lines 302
Lines of code 208
Logical lines of code 131
Comment lines 34
Methods 19
Properties 2

Methods 19

Method Rating Maintainability Complexity Lines of code
prepare_urls_to_size_data_result()
A
49 9 32
get_size_data_from_wp_attachment_metadata()
A
52 8 25
get_main_file_data_from_wp_attachment_metadata()
S
57 5 18
urls_to_size_data()
S
55 5 18
attachment_urls_to_ids()
S
52 4 24
make_query()
S
56 3 18
get_slice_count()
S
68 2 7
get_smushed_count()
S
63 1 11
get_offset()
S
73 1 5
convert_attachment_url_to_relative()
S
80 1 3
__construct()
S
76 1 4
get_ignored_count()
S
71 1 5
fetch()
S
72 1 5
get_lossy_count()
S
71 1 5
get_image_attachment_count()
S
73 1 5
fetch_slice_ids()
S
72 1 5
fetch_slice_posts()
S
67 1 7
fetch_slice_post_meta()
S
65 1 8
is_non_media_library_url()
S
80 1 3